home *** CD-ROM | disk | FTP | other *** search
- #ifndef INPUT_JOYPORTS_H
- #define INPUT_JOYPORTS_H TRUE
-
- /*
- ** $VER: joyports.h V0.9B
- **
- ** Joyport definitions.
- **
- ** (C) Copyright 1996-1997 DreamWorld Productions.
- ** All Rights Reserved.
- */
-
- #ifndef DPKERNEL_H
- #include <dpkernel/dpkernel.h>
- #endif
-
- /*****************************************************************************
- ** JoyData structure, for reading from joyports.
- */
-
- #define JOYVERSION 1
- #define TAGS_JOYDATA ((ID_SPCTAGS<<16)|(ID_JOYDATA))
-
- struct JoyData {
- struct Head Head; /* Standard header */
- WORD Port; /* Port number, starts at 0 (mouse) */
- WORD XChange; /* Change from X position */
- WORD YChange; /* Change from Y position */
- WORD ZChange; /* Change from Z position */
- LONG Buttons; /* Currently pressed buttons */
-
- /*** Private fields start now ***/
-
- LONG prvTicks; /* Time-Out */
- WORD prvType; /* Type of device */
- };
-
- #define JD_FIRE1 0x00000001L /* Standard Fire Button (1) - LMB */
- #define JD_FIRE2 0x00000002L /* Standard Fire Button (2) - RMB */
- #define JD_FIRE3 0x00000004L /* Standard Fire Button (3) - MMB */
- #define JD_FIRE4 0x00000008L /* "Start" */
- #define JD_FIRE5 0x00000010L /* "Select" */
- #define JD_FIRE6 0x00000020L /* Rewind L1 */
- #define JD_FIRE7 0x00000040L /* Forward R1 */
- #define JD_FIRE8 0x00000080L /* Rewind L2 */
- #define JD_FIRE9 0x00000100L /* Forward R2 */
-
- #define JD_LMB JD_FIRE1
- #define JD_RMB JD_FIRE2
- #define JD_MMB JD_FIRE3
-
- #endif /* INPUT_JOYPORTS_H */
-